<template>
  <div>
        组件二 {{ list.abc.num }}
        <div v-for="item in  list" :key="item.id">
            {{ item.id }}
        </div>
  </div>
</template>

<script>
import  {bannerQuery} from  "@/model/bannerModel"
export default {
    name:"childView2",
    data(){
        return  {
            list:[]
        }
    },
  async  created(){
    let res  = await  bannerQuery({});
    this.list = res.data;
    console.log("组件二请求数据")
    }

}
</script>

<style>

</style>